<?php
class TDataTableContratoLotacao extends TDataTable
{       
    public function __construct($contratoid, $options = array())
    {
        $columns = array();
        $key = 'lotacaocontratoid';  
        $criterio = array();
        $criterio['precondicao']= 'contratoid ='. $contratoid;
        
        parent::__construct(new ViewLotacoes(), $key, $criterio, $options, $columns);
        $this->addColumnsData(array('lotacao','nucleo'));
        $this->addFiltersCombo( array('nucleo') );
    }  
}